package com.aerotechnic.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "DRF")
public class Outillage extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Column(name="PN")
	private String PN;
	
	@Column(name="RefATI")
	private String refATI; 
	
	@Column(name="SN")
	private String SN; 
	
	@Column(name="Designation")
	private String designation;
	
	@Column(name="Disponible")
	private String estDispo;
	
	@Column(name="QTE")
	private String qte;
	
	// links
	
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = DRF.class)
	private DRF drf;
	
	//getters and setters
	public String getPN() {
		return PN;
	}

	public void setPN(String pN) {
		PN = pN;
	}

	public String getRefATI() {
		return refATI;
	}

	public void setRefATI(String refATI) {
		this.refATI = refATI;
	}

	public String getSN() {
		return SN;
	}

	public void setSN(String sN) {
		SN = sN;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String getEstDispo() {
		return estDispo;
	}

	public void setEstDispo(String estDispo) {
		this.estDispo = estDispo;
	}

	public String getQte() {
		return qte;
	}

	public void setQte(String qte) {
		this.qte = qte;
	}

	public DRF getDrf() {
		return drf;
	}

	public void setDrf(DRF drf) {
		this.drf = drf;
	} 

}
